package StringTest;

import java.util.StringJoiner;

public class Joiner {
    public static void main(String[] args) {
        StringJoiner joiner = new StringJoiner(",","[","]");
        joiner.add("A");
        joiner.add("B");
        joiner.add("C");
        System.out.println(joiner.toString());
    }
}
